package org.jeecg.trace.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 产品生产状态表
 * @Author: LiCY
 * @Date:   2023-06-18
 * @Version: V1.0
 */
@Data
@TableName("mes_unit_status")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="mes_unit_status对象", description="产品生产状态表")
public class MesUnitStatus implements Serializable {
    private static final long serialVersionUID = 1L;

    /**工单ID*/
    @Excel(name = "联合ID", width = 15)
    @ApiModelProperty(value = "联合ID")
    private String federationId;

	/**工单ID*/
	@Excel(name = "工单ID", width = 15)
    @ApiModelProperty(value = "工单ID")
    private String woid;
	/**序列号*/
	@Excel(name = "序列号", width = 15)
    @ApiModelProperty(value = "序列号")
    private String unitsn;
	/**产品/产品组*/
	@Excel(name = "产品/产品组", width = 15)
    @ApiModelProperty(value = "产品/产品组")
    private String partno;
	/**产线/产线组*/
	@Excel(name = "产线/产线组", width = 15, dictTable = "mes_line_cfg", dicText = "LINE", dicCode = "LINE")
	@Dict(dictTable = "mes_line_cfg", dicText = "LINE", dicCode = "LINE")
    @ApiModelProperty(value = "产线/产线组")
    private String line;
	/**工位*/
	@Excel(name = "工位", width = 15)
    @ApiModelProperty(value = "工位")
    private String op;
	/**工站*/
	@Excel(name = "工站", width = 15)
    @ApiModelProperty(value = "工站")
    private String stn;
	/**日期*/
	@Excel(name = "日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "日期")
    private Date dt;
	/**加工结果*/
	@Excel(name = "加工结果", width = 15)
    @ApiModelProperty(value = "加工结果")
    @Dict(dicCode = "UnitStatus_result")
    private String result;
	/**重复加工次数*/
	@Excel(name = "重复加工次数", width = 15)
    @ApiModelProperty(value = "重复加工次数")
    private BigDecimal repeatCount;
	/**状态*/
	@Excel(name = "状态", width = 15)
    @ApiModelProperty(value = "状态")
    @Dict(dicCode = "UnitStatus_status")
    private String status;
	/**班次日期*/
	@Excel(name = "班次日期", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "班次日期")
    private Date shiftDate;
	/**班次*/
	@Excel(name = "班次", width = 15)
    @ApiModelProperty(value = "班次")
    private String shift;
	/**返工至工位*/
	@Excel(name = "返工至工位", width = 15)
    @ApiModelProperty(value = "返工至工位")
    private String rwktoOp;
	/**返工至工站*/
	@Excel(name = "返工至工站", width = 15)
    @ApiModelProperty(value = "返工至工站")
    private String rwktoStn;
	/**运行周期ID*/
	@Excel(name = "运行周期ID", width = 15)
    @ApiModelProperty(value = "运行周期ID")
    private BigDecimal cycleId;
	/**产品ID*/
	@Excel(name = "产品ID", width = 15)
    @ApiModelProperty(value = "产品ID")
    private BigDecimal parttypeid;
	/**状态字*/
	@Excel(name = "状态字", width = 15)
    @ApiModelProperty(value = "状态字")
    private BigDecimal statusword;
	/**段落编号*/
	@Excel(name = "段落编号", width = 15)
    @ApiModelProperty(value = "段落编号")
    @Dict(dicCode = "MesUnitID_Segment")
    private String segmentCode;
	/**返工代码*/
	@Excel(name = "返工代码", width = 15)
    @ApiModelProperty(value = "返工代码")
    private String rwkCode;
	/**批次号*/
	@Excel(name = "批次号", width = 15)
    @ApiModelProperty(value = "批次号")
    private String lotno;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date ctime;
}
